package encapsulation;

/**
 * @classname:PersonTest
 * @description:
 * @author: Mr.Z
 * @date: 2020/11/27 22:46
 * @version: 0.1
 * @since:1.8
 */
public class PersonTest {
    public static void main(String[] args) {
        Person person1 = new Person(01,"张三",29);
        Person person2 = new Person(02,"李四",20);
        String compare = person1.compare(person2);
        System.out.println(compare);
        person2.count();
    }
}
